package exception;

public class test2 {
    public static void main(String[] args) {
        try{
            getOne(1);

        }catch (exceptionError e){
            System.out.println(e);
        }
    }
    public static void getOne(int a ) throws exceptionError{
        if(a >1){
            System.out.println("正常");
        }else {
            throw new exceptionError("你好,我是报错");
        }
    }
}
